package com.runssnail.huafeiduo.api.response;

import java.util.Map;

/**
 * 获得当前余额。
 *
 * Created by zhengwei on 2016/3/31.
 */
public class AccountBalanceResponse extends Response {

    private static final long serialVersionUID = -650204199198839889L;

    private Map<String, String> data;

    public Map<String, String> getData() {
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }

    /**
     * 账户余额，单位元
     *
     * @return
     */
    public double getBalance() {
        return Double.valueOf(data.get("balance"));
    }

}
